#include<vector>
using namespace std;

int minSubArrayLen(int target, vector<int>& nums) {
    int len = INT_MAX;
    int sum = 0;
    for (int left = 0, right = 0; right < nums.size(); right++)
    {
        sum += nums[right];
        while (sum >= target)
        {
            len = min(len, right - left + 1);
            sum -= nums[left];
            left++;
        }
    }
    if (len == INT_MAX) return 0;
    return len;
}

int main()
{


	return 0;
}